﻿<table class="key-value">
@{
    var tmp = (Model as IEnumerable<dynamic>)
        .GroupBy(x => JDM.String(x.SKU));
    if(tmp.Any())
    {
        foreach(var g in tmp)
        {
            <tr>
                <th colspan="2">@g.Key</th>
            </tr>
            foreach(var i in g)
            {
                <tr>
                    <td>
                    @{
                        Html.RenderPartial('_' + (string)JDM.String(i.Code), (object)i);
                    }
                    </td>
                </tr>
            }
        }
    }
    else
    {
        <tr>
            <td class="empty"><span>@T(Res.In("Common").Of("Expr").Name("NoData"))</span></td>
        </tr>
    }
}
</table>